﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MyCollections
{
    public partial class webbrowser : Form
    {
        public webbrowser()
        {
            InitializeComponent();
            webBrowser1.Url = new Uri("http://www.imdb.com");
            webBrowser1.Show();
        }

        public webbrowser(Uri uri, bool saveLink)
        {
            InitializeComponent();
            
            if(uri == null)
                uri = new Uri("http://www.imdb.com");
            webBrowser1.Url = uri;
                
            bt_save_link.Visible = saveLink;

            webBrowser1.Show();            
            
        }
    }
}